#include "gameengine.h"
#include "introstate.h"

extern CIntroState introState;

int main ( int argc, char *argv[] )
{
    CGameEngine game;

    game.Init( "Engine Test v1.0" );
    //freopen( "CON", "w", stdout );
    //freopen( "CON", "w", stderr );


    game.ChangeState( &introState );

    while ( game.Running() )
    {
        game.HandleEvents();
        game.Update();
        game.Draw();
        game.RegulateFPS();
        game.UpdateScreen();
    }

    game.Cleanup();
    //system("pause");
    return 0;
}
